<?php

namespace App\Policies\Index\Users;

use App\Models\User;
use Illuminate\Auth\Access\HandlesAuthorization;

class UserPolicy
{
    use HandlesAuthorization;
    public function update(User $currentUser, User $user):bool
    {
        return $currentUser->id === $user->id;
    }
    public function follow(User $currentUser, User $user)
    {
        return $currentUser->id !== $user->id;
    }
}
